www.gusucode.com > 24Beta 虚拟主机版 1.0.0 Beta源码程序 > 24Beta 虚拟主机版 1.0.0 Beta源码程序/24Beta-1.0.0-vhost/index.php
<?php // change the following paths if necessary $yii = dirname(__FILE__) . '/library/framework/yii.php'; $config = dirname(__FILE__) . '/protected/config/main.php'; $global = dirname(__FILE__) . '/library/global.php'; // remove the following line when in production mode // defined('YII_DEBUG') or define('YII_DEBUG', true); require_once($yii); require_once($global); $app = Yii::createWebApplication($config); mb_internal_encoding(app()->charset); date_default_timezone_set(param('timezone')); $app->run();